{% extends 'app2/base.html' %}
{% load i18n %}
{% block subtitle %}{{obj}}{% endblock %}

{% block extra-head %}
<meta name="keywords" content="{{obj}},{{ g_blog.title }},{{ g_blog.keywords }}" />
<meta name="description" content="{{obj}},{{ g_blog.description }}" />
{% endblock %} 

{% block content_main %}
<div class="yui-b">

<div class="yui-g" id="artlist_top">
    <h2 title="{{obj|safe}}">{{obj|safe}} {% if user.is_authenticated %}<a href="{% url app2.views.add_article obj.key %}" class="addpost">{% trans "Add New Post" %}</a>{%endif%}</h2>
    {%if ads_articlelist_top%}<div class="artlist_ggad">{{ads_articlelist_top|safe}}</div>{%endif%}
    <ul class="bbsartlist">
    {%for each in cur_articlelist%}{%if each%}
    <li>
    <h3><a href="{{each.get_absolute_url}}" title="{{each.title|safe}}" class="title2">{{each.title|safe}}</a> <em>{% ifnotequal each.commentcount 0 %}{% trans 'Reply' %}:{{each.commentcount}} {% endifnotequal %}{% trans "Author" %}: <a href="{{each.profile.get_absolute_url}}" title="{{each.profile.displayname|safe}} {% trans 'Profile' %}">{{each.profile.displayname|safe}}</a> {% trans "Date" %}: {{each.pub_time|date:"Y-m-d"}}</em></h3>
    </li>{%endif%}{%endfor%}
    </ul>
    {%if pagination_div%}{{ pagination_div|safe }}{%endif%}    
</div>

</div>

{% endblock %}
